package org.ytor.core.sysapi.monitor.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * created by yangtong on 2025/7/6 22:42:57
 * <br/>
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "内存池详细信息")
public class MemoryPoolDetailResp {

    @Schema(description = "内存池名称", example = "G1 Eden Space")
    private String name;

    @Schema(description = "内存池类型", example = "HEAP")
    private String type;

    @Schema(description = "已使用内存（字节）")
    private Long used;

    @Schema(description = "已提交内存（字节）")
    private Long committed;

    @Schema(description = "最大内存（字节）")
    private Long max;

    @Schema(description = "使用率（%）")
    private Double usageRate;
}
